package com.j1ay.forum.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.j1ay.forum.model.pojo.po.Answer;
import com.j1ay.forum.model.pojo.vo.LoginUserVo;

/**
 * @Author J1ay
 * @Date 2021/12/14 21:26
 * @Description
 */

public interface AnswerMapper extends BaseMapper<Answer> {

    /**
     * 获取点赞总数
     * @return
     */
    int findAnswerPraiseSum();

    /**
     * 回答最多的MVP
     * @return
     */
    LoginUserVo findAnswerMvp();

    /**
     * mvp的回答数
     * @return
     */
    int findMvpCount();
}
